# -*- coding: utf-8 -*-
'''
@Time    : 24-6-12 下午2:00
@Author  : zhangweihao
@File    : main.py
'''

import os
import sys

base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_path)

from celery import Celery

celery = Celery()

celery.config_from_object('celery_task.config')
celery.autodiscover_tasks(['celery_task.build_index'])

